<template>
  <div>Index</div>
  <my-component1></my-component1>
  <MyComponent1 />
  <MyComponent2 />
  <!-- 声明式导航 -->
  <nuxt-link
    :to="{
      path: '/home',
      query: {
        name: '沛华',
        age: 50,
      },
    }"
  >
    home
  </nuxt-link>
  <NuxtLink to="/about?name=沛华&age=40">about</NuxtLink>
</template>

<script lang="ts" setup>
defineOptions({
  name: "Index",
});
</script>

<style scoped lang="scss"></style>
